#!/usr/bin/env python2.7
#-*-coding:utf-8-*-

cities={'CA':'San Francisco','MI':'Detroit','FL':'JackSonville'}

cities['NY']='New York'
cities['OR']='PortLand'

def find_city(themap,state):
	if state in themap:
		return themap[state]
	else:
		return "Not Found!"

#ok,pay attentation
cities['_find']=find_city

while True:
	print "state?(enter to quit)",
	state=raw_input('>')
	if not state:break
	city_found=cities['_find'](cities,state)
	print city_found
